package MVC.view;

import java.awt.event.ActionListener;

import MVC.controller.ControllerPatternFinder;
import MVC.listeners.ProgressListener;
import MVC.listeners.TextListener;

public abstract class ViewPatternFinder implements ActionListener,ProgressListener,TextListener{

	private ControllerPatternFinder controller = null;
	private ErrorBox error;
	
	public ViewPatternFinder(ControllerPatternFinder controller){
		super();
		
		this.controller = controller;
	}
	
	public final ControllerPatternFinder getController(){
		return controller;
	}

	public void buildErrorBox(String message){
		this.error = new ErrorBox("Error",message);
	}
}
